class Base1 {};
class Base2 {};
class Base3 {};

class Derived : public Base1, protected Base2, private Base3
{};

int main()
{
   Derived d;
   Base1* pb1 = &d;
   Base2* pb2 = &d;
   Base3* pb3 = &d;
}

/* Compiler output:
Error E2034 c:\uvsc\spring02\3370\upcast.cpp 12: Cannot convert 'Derived *' to 'Base2 *' in function main()
Error E2034 c:\uvsc\spring02\3370\upcast.cpp 13: Cannot convert 'Derived *' to 'Base3 *' in function main()
*/

